<?php
/*
* DefinedFile - db_xcall
* 数据表字段定义文件
* @since 1.0 2014-09-03 by sutroon
*/

return array(
	array(
		'TABLE_NAME' => 'cdr',
		'ENGINE' => 'MyISAM',
		'TABLE_COLLATION' => 'latin1',
		'TABLE_COMMENT' => '',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '旧字段', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'id2', 'FormInputType' => 'a', 'FormRequire' => TRUE, 'FormValueVar' => '$b', 'FormJSONSource' => 'c', 'FormValueRange' => 'd', 'ListValueFunction' => 'e', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'calldate', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => 'MUL', 'Default' => '0000-00-00 00:00:00', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'calldate', 'FormInputType' => 'datepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'clid', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'clid', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'src', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'src', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dst', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => 'MUL', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dst', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dcontext', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dcontext', 'FormInputType' => 'textarea', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'channel', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'channel', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dstchannel', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dstchannel', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'lastapp', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'lastapp', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'lastdata', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'lastdata', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'start', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'start', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'answer', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'answer', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'end', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'end', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'duration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'duration', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billsec', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'billsec', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'disposition', 'Type' => 'varchar(45)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'disposition', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'amaflags', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'amaflags', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'accountcode', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => 'MUL', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'accountcode', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'uniqueid', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'uniqueid', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'userfield', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'userfield', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'did', 'Type' => 'varchar(50)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'did', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'recordingfile', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'recordingfile', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cnum', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cnum', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cnam', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cnam', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outbound_cnum', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outbound_cnum', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outbound_cnam', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outbound_cnam', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dst_cnam', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dst_cnam', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callerNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '主叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'calledNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '被叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'被叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extension', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'extension', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'hungupTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '挂机时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'挂机时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dtmf', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '按键信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'按键信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ecdtmf', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户评价按键信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户评价按键信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'amount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '话费金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'话费金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'direction', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼叫方向(1=呼入,2=呼出)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫方向', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'cdr2',
		'ENGINE' => 'MyISAM',
		'TABLE_COLLATION' => 'latin1',
		'TABLE_COMMENT' => '',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'id', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'calldate', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => 'MUL', 'Default' => '0000-00-00 00:00:00', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'calldate', 'FormInputType' => 'datepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'clid', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'clid', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'src', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'src', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dst', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => 'MUL', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dst', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dcontext', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dcontext', 'FormInputType' => 'textarea', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'channel', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'channel', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dstchannel', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dstchannel', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'lastapp', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'lastapp', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'lastdata', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'lastdata', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'start', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'start', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'answer', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'answer', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'end', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'end', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'duration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'duration', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billsec', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'billsec', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'disposition', 'Type' => 'varchar(45)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'disposition', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'amaflags', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'amaflags', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'accountcode', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => 'MUL', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'accountcode', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'uniqueid', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'uniqueid', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'userfield', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'userfield', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'did', 'Type' => 'varchar(50)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'did', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'recordingfile', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'recordingfile', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cnum', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cnum', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cnam', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cnam', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outbound_cnum', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outbound_cnum', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outbound_cnam', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outbound_cnam', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dst_cnam', 'Type' => 'varchar(40)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dst_cnam', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callerNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '主叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'calledNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '被叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'被叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'hungupTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '挂机时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'挂机时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dtmf', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '按键信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'按键信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ecdtmf', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户评价按键信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户评价按键信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'amount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '话费金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'话费金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'direction', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼叫方向(1=呼入,2=呼出)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫方向', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'cel',
		'ENGINE' => 'MyISAM',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'id', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'eventtype', 'Type' => 'varchar(30)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'eventtype', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'eventtime', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'eventtime', 'FormInputType' => 'timepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cid_name', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cid_name', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cid_num', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cid_num', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cid_ani', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cid_ani', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cid_rdnis', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cid_rdnis', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cid_dnid', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cid_dnid', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'exten', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'exten', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'context', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'context', 'FormInputType' => 'textarea', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'channame', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'channame', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'src', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'src', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dst', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dst', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'channel', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'channel', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dstchannel', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dstchannel', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'appname', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'appname', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'appdata', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'appdata', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'amaflags', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'amaflags', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'accountcode', 'Type' => 'varchar(20)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'accountcode', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'uniqueid', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'uniqueid', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'linkedid', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'linkedid', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'peer', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'peer', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'userdeftype', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'userdeftype', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'eventextra', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'eventextra', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'userfield', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'userfield', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'mytable',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'id', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'accountcode', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'accountcode', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'mytable123',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => 'ACD队列表 1.0 2014-6-25 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extension', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => 'ACD号码(队列号码)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'ACD号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'descr', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '队列名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'队列名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'staticAgents', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '静态内线', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'静态内线', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'distributionPolicy', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '分配策略', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'分配策略', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'overflowStrategy', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '超时溢出标志(0=不溢出,queue=溢出到队列,1,extension=溢出到分机)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'超时溢出标志', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'overflowTarget', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '溢出目标(队列或分机号,分机:from-did-direct,608,1,队列:ext-queues,2000,1)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'溢出目标', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'music', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '欢迎语音子目录', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'欢迎语音子目录', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'maxwait', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '队列等待超时时间(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'队列等待超时时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'maxlen', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '最大排队数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'最大排队数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'strategy', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '振铃规则', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'振铃规则', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'retry', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '重试间隔', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'重试间隔', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'timeout', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '座席振铃超时时间(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'座席振铃超时时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cwignore', 'Type' => 'smallint(6)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '是否跳过示忙座席', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否跳过示忙座席', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'monitor-format', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '录音格式', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音格式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'monitor_type', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '录音模式', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cron_schedule', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '复位队列状态', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'复位队列状态', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'autofill', 'Type' => 'smallint(6)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '是否Autofill', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否Autofill', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '状态(0=禁用,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=启用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'timestamp', 'Null' => 'NO', 'Key' => '', 'Default' => 'CURRENT_TIMESTAMP', 'Extra' => 'on update CURRENT_TIMESTAMP', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'mytable12345',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => 'ACD队列表 1.0 2014-6-25 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extension', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => 'ACD号码(队列号码)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'ACD号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'descr', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '队列名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'队列名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'staticAgents', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '静态内线', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'静态内线', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'distributionPolicy', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '分配策略', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'分配策略', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'overflowStrategy', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '超时溢出标志(0=不溢出,queue=溢出到队列,1,extension=溢出到分机)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'超时溢出标志', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'overflowTarget', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '溢出目标(队列或分机号,分机:from-did-direct,608,1,队列:ext-queues,2000,1)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'溢出目标', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'music', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '欢迎语音子目录', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'欢迎语音子目录', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'maxwait', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '队列等待超时时间(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'队列等待超时时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'maxlen', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '最大排队数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'最大排队数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'strategy', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '振铃规则', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'振铃规则', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'retry', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '重试间隔', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'重试间隔', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'timeout', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '座席振铃超时时间(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'座席振铃超时时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cwignore', 'Type' => 'smallint(6)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '是否跳过示忙座席', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否跳过示忙座席', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'monitor-format', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '录音格式', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音格式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'monitor_type', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '录音模式', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cron_schedule', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '复位队列状态', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'复位队列状态', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'autofill', 'Type' => 'smallint(6)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '是否Autofill', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否Autofill', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '状态(0=禁用,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=启用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'timestamp', 'Null' => 'NO', 'Key' => '', 'Default' => 'CURRENT_TIMESTAMP', 'Extra' => 'on update CURRENT_TIMESTAMP', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_acd_queue',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => 'ACD队列表 1.0 2014-6-25 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extension', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => 'ACD号码(队列号码)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'ACD号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'descr', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '队列名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'队列名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'staticAgents', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '静态内线', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'静态内线', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'distributionPolicy', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '分配策略', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'分配策略', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'overflowStrategy', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '超时溢出标志(0=不溢出,queue=溢出到队列,1,extension=溢出到分机)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'超时溢出标志', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'overflowTarget', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '溢出目标(队列或分机号,分机:from-did-direct,608,1,队列:ext-queues,2000,1)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'溢出目标', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'music', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '欢迎语音子目录', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'欢迎语音子目录', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'maxwait', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '队列等待超时时间(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'队列等待超时时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'maxlen', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '最大排队数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'最大排队数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'strategy', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '振铃规则', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'振铃规则', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'retry', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '重试间隔', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'重试间隔', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'timeout', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '座席振铃超时时间(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'座席振铃超时时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cwignore', 'Type' => 'smallint(6)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '是否跳过示忙座席', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否跳过示忙座席', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'monitor-format', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '录音格式', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音格式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'monitor_type', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '录音模式', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cron_schedule', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '复位队列状态', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'复位队列状态', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'autofill', 'Type' => 'smallint(6)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '是否Autofill', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否Autofill', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '状态(0=禁用,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=启用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_auto_duty',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '自动登录表(1.0 2014-7-2 by sutroon)',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extension', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '分机名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'分机名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'queue', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '队列名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'队列名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dateType', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '日期类型(0=非工作日,1=工作日,2=所有)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'日期类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'beginTime', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始时间(时分)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'endTime', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '结束时间(时分)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'结束时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '工作状态(0=登出,1=登入)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'工作状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=登出,1=登入', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'enable', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '启用状态(0=停止,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'启用状态', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_history',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '呼叫记录(通话详单)表 1.0 2014-6-24 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'cdrid', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'cdrid', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callerNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '主叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extension', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '分机号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'分机号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'calledNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '被叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'被叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'start', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始呼叫时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始呼叫时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'answer', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户应答时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户应答时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'talkBeginTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '通话开始交谈时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'通话开始交谈时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'end', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '通话结束交谈时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'通话结束交谈时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'duration', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '振铃时间+通话时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'振铃时间+通话时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billsec', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '通话时长(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'通话时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'accountcode', 'Type' => 'varchar(20)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '账号ID', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'账号ID', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'hungupTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '挂机时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'挂机时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dtmf', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '按键信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'按键信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ecdtmf', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户评价按键信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户评价按键信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'recordingfile', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '录音文件地址', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音文件地址', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'amount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '话费金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'话费金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'uniqueid', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '全球资源编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'全球资源编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'direction', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼叫方向(1=系统呼出后接入[呼入费率组],2=系统呼出[呼出费率组],3=网内分机打分机,4=来话,5=分机外呼[呼出费率组])', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫方向', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number0',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number1',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number10',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number11',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number12',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number13',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number2',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number3',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number4',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number5',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number6',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number7',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number8',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_number9',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼号码表 1.0 2014-7-1 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态((0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_call_plan',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼任务号码计划表 1.0 2014-6-27 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sourceID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '来源表的主键编号(如tcti_call_number_add.id)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来源表的主键编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'customerName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '客户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'客户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'detailMsg', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '其他信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'其他信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'direction', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼叫方向(1=系统呼出后接入[呼入费率组],2=系统呼出[呼出费率组],3=网内分机打分机,4=来话,5=分机外呼[呼出费率组])', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫方向', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_channels',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '虚拟通道表 1.0 2014-6-27 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'channel', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继通道号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继通道号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'account', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'actionID', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => 'asterisk的actionID', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'asterisk的actionID', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略表主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略表主键编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务表主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务表主键编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'planID', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫计划表主键编号(tcti_call_number_plan.id)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫计划表主键编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sourceID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '来源表的主键编号(如tcti_call_number_add.id)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来源表的主键编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNo', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'direction', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '方向(1=呼入,2=呼出)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'方向', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dtmf', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '按键信息', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'按键信息', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态(0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=空闲,1=正在发起呼叫,2=呼叫失败,3=呼叫成功', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'timestamp', 'Null' => 'NO', 'Key' => '', 'Default' => 'CURRENT_TIMESTAMP', 'Extra' => 'on update CURRENT_TIMESTAMP', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_daybill',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '日结账单表 1.0 2014-7-9 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billdate', 'Type' => 'date', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '计费日期(月日)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'计费日期', 'FormInputType' => 'datepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outAmount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '外呼金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'inAmount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '转座席金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'转座席金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'smsAmount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '短信金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'短信金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'subtotal', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '消费小计', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'消费小计', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'rechargeAmount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '充值金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'充值金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'allowOverdraftAmount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '可透支金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'可透支金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'blance', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '余额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'余额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '状态', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '!=正常&2=待审核&4=关闭', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_income_nav',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '来话导航表(1.0 2014-7-1 by sutroon)',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'name', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '导航名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'导航名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称(外线名称account,ip模式可填主叫号码,注册模式不要主叫号码)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'regMode', 'Type' => 'varchar(12)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继注册模式(register=注册模式,ip=IP模式)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继注册模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callerNo', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '主叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'calledNo', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '被叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'被叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'recState', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '录音标识', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音标识', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '!=正常&2=待审核&4=关闭', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sayExtension', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '播放工号标识', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'播放工号标识', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'music', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '放音文件(sounds)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'放音文件', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'musicLimit', 'Type' => 'smallint(6)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'musicLimit', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dateType', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '日期类型(0=非工作日,1=工作日,2=所有)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'日期类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'beginTime', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始时间(时分)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'endTime', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '结束时间(时分)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'结束时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outOper', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼通后操作(0=直接转队列,1=按码转队列,6=放音转队列,2=按码转菜单,3=放音后挂机,4=留言后挂机,5=按码后挂机,7=直接转队列评价,8=按码转队列评价,9=放音转队列评价)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼通后操作', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outParam', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼通后操作具体参数(格式：按键号1:队列号1|按键号2:队列号2)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼通后操作具体参数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outQueue', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outQueue', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outExp1Enable', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '是否启用放音转队列时长(0=不启用,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否启用放音转队列时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outExp1', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '放音转队列时长(放音n秒后开始转队列,0=放完音转队列)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'放音转队列时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outEcEnable', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outEcEnable', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outEcMusic', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outEcMusic', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '状态(0=停止,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=停止,1=启用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_number_limit',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '号码限制表,包含呼出限制和来话黑名单(1.0 2014-7-3 by sutroon)',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneNumber', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '电话号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'电话号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'type', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '类型(1=呼出限制,2=来话黑名单)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '状态(0=停止,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=停止,1=启用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_number_start',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'areaName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '地区名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'地区名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'numberPart', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码前段部分', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码前段部分', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'phoneLength', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码长度', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码长度', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ordinal', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '排列次序', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'排列次序', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码状态(0=未呼,1已呼)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=未呼,1已呼', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_payfeerate',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '费率表 1.0 2014-7-9 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'payType', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '费率组', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'费率组', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'perSec', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '计费时长(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'计费时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'perRate', 'Type' => 'decimal(12,4)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '话费金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'话费金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_task',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼任务表 1.0 2014-6-26 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'name', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '任务名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'任务名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'province', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '省份', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'省份', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'city', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '城市', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'城市', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'numberType', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码类型(0=手机,1=固话)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'operator', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '运营商(1=移动,2=联通,3=电信)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'运营商', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'areaName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '归属地号段', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'归属地号段', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'startNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始号码(号码范围)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'endNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '结束号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'结束号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'lastNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '尾数选号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'尾数选号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'prefix', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码前缀', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码前缀', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'rule', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '生成规则(order=顺序保存,random=乱序)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'生成规则', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'telsCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码总数(生成或导入的号码数量)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码总数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '已呼数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'已呼数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'unCallCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '未呼数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'未呼数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callRate', 'Type' => 'decimal(5,2)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.00', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'callRate', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callSuccessCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '应答数量(呼叫成功数量)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'应答数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callFailCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '失败数量(呼叫失败(空号或无法呼通))', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'失败数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'noAnswerCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '未接数量(已呼通被叫无应答)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'未接数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'connRate', 'Type' => 'decimal(5,2)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.00', 'Extra' => '', 'Comment' => '接通率(成功数量/已呼数量)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'接通率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '任务状态(0=停止,1=启动,2=暂停)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'任务状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=停止,1=启动,2=暂停', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_task_history',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼任务历史记录表 1.0 2014-7-17 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'name', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '任务名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'任务名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'source', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '来源(add=添加,import=导入,generate=生成)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来源', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'province', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '省份', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'省份', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'city', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '城市', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'城市', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'numberType', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码类型(0=手机,1=固话)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'operator', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '运营商(1=移动,2=联通,3=电信)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'运营商', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'areaName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '归属地号段', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'归属地号段', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'startNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始号码(号码范围)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'endNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '结束号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'结束号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'lastNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '尾数选号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'尾数选号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'prefix', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '号码前缀', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码前缀', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'telsCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '号码总数(生成或导入的号码数量)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'号码总数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '已呼数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'已呼数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'unCallCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '未呼数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'未呼数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callSuccessCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼叫成功数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫成功数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callFailCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼叫失败数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫失败数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'connRate', 'Type' => 'decimal(5,2)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.00', 'Extra' => '', 'Comment' => '接通率(成功数量/已呼数量)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'接通率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '任务状态(0=停止,1=启动,2=暂停)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'任务状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=停止,1=启动,2=暂停', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_task_strategy',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼任务策略表 1.0 2014-6-26 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'name', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '策略名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'策略名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunkName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称(外线名称account,ip模式可填主叫号码,注册模式不要主叫号码)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'regMode', 'Type' => 'varchar(12)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继注册模式(register=注册模式,ip=IP模式)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继注册模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callerNo', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '主叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'speedMode', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼速度模式(percent=空闲座席比例,channel=通道数量)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼速度模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'speed', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼速度(空闲座席比例,通道数量)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼速度', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'recState', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '录音标识(1=启用,0=禁用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音标识', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '1=启用,0=禁用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'music', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '放音文件(sounds)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'放音文件', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'musicLimit', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '最大放音次数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'最大放音次数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sayExtension', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'sayExtension', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outOper', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼通后操作(0=直接转队列,1=按码转队列,6=放音转队列,2=按码转菜单,3=放音后挂机,4=留言后挂机,5=按码后挂机,7=直接转队列评价,8=按码转队列评价,9=放音转队列评价)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼通后操作', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outParam', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼通后操作具体参数(格式：按键号1:队列号1|按键号2:队列号2)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼通后操作具体参数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outQueue', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼通后操作队列号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼通后操作队列号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outExp1Enable', 'Type' => 'smallint(6)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '是否启用放音转队列时长(0=不启用,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否启用放音转队列时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outExp1', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '放音转队列时长(放音n秒后开始转队列,0=放完音转队列)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'放音转队列时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outEcEnable', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '是否评价', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否评价', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outEcMusic', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '评价放音文件(sounds)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'评价放音文件', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outEcKey', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '评价按键(默认挂机键)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'评价按键', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_task_timespan',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '呼出时段表(1.0 2014-7-3 by sutroon)',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dateType', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '日期类型(0=非工作日,1=工作日,2=所有)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'日期类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'beginTime', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始时间(时分)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'endTime', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '结束时间(时分)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'结束时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '状态(0=停止,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=停止,1=启用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_trunk',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外线中继表 1.0 2014-6-19 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'userCode', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '用户号(创建人uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'用户号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'account', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称(CTIID),不可重复', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'accountcode', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '同account', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'同account', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'type', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '类型(如:friend)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'nat', 'Type' => 'varchar(3)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '是否使用NAT(如:no)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否使用NAT', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'host', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '服务器地址', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'服务器地址', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'port', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '服务器端口', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'服务器端口', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'fromdomain', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '同host', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'同host', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'username', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '认证用户(可重复)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'认证用户', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'fromuser', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '同userName', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'同userName', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'password', 'Type' => 'varchar(128)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '认证密码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'认证密码', 'FormInputType' => 'password', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'context', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫流程名称(如:my-internal)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫流程名称', 'FormInputType' => 'textarea', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'insecure', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '限制(如:port,invite)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'限制', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dtmfmode', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => 'DTMF模式(如:rfc2833)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'DTMF模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'disallow', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '禁止的音频格式(如:all)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'禁止的音频格式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'allow', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '允许的音频格式(如:g729&g723&ulaw)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'允许的音频格式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'regNumber', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '注册数量(最大通道数)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'注册数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'direction', 'Type' => 'varchar(12)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼叫模式(in=来话模式,out=外呼模式)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'regMode', 'Type' => 'varchar(12)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继注册模式(register=注册模式,ip=IP模式)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继注册模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '状态(0=禁用,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=启用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_voice_menu',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '语音菜单表 1.0 2014-7-2 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'name', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '菜单名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'菜单名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'music', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '放音文件(sounds)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'放音文件', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'musicLimit', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '最大放音次数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'最大放音次数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sayExtension', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'sayExtension', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outOper', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼通后操作(0=直接转队列,1=按码转队列,6=放音转队列,2=按码转菜单,3=放音后挂机,4=留言后挂机,5=按码后挂机,7=直接转队列评价,8=按码转队列评价,9=放音转队列评价)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼通后操作', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outQueue', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outQueue', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outParam', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '呼通后操作具体参数(格式：按键号1:队列号1|按键号2:队列号2)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼通后操作具体参数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outExp1Enable', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '是否启用放音转队列时长(0=不启用,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否启用放音转队列时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outExp1', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '放音转队列时长(放音n秒后开始转队列,0=放完音转队列)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'放音转队列时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outEcEnable', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outEcEnable', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outEcKey', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outEcKey', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outEcMusic', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'outEcMusic', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'remark', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '备注', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'备注', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tcti_workday',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '工作日表 1.0 2014-7-3 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'weekday', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '每周工作日(用,隔开)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'每周工作日', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'tempHolidays', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '临时节假日(用
隔开)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'临时节假日', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'tempWorkDays', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '临时工作日(用
隔开)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'临时工作日', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tgeneral_event',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '通用事件表 1.1 2014-6-16 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'userName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '操作员', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'操作员', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'eventAction', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '动作，如：查询、充值、登录', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'动作，如：查询、充值、登录', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'targetObject', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '操作目标，如：表名、存储过程名、视图名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'操作目标，如：表名、存储过程名、视图名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'eventSource', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '来源，如：login.php', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来源，如：login.php', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'eventLevel', 'Type' => 'varchar(12)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '级别，如：INFO信息、ERROR错误', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'级别，如：INFO信息、ERROR错误', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'description', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '描述，如：充值100元', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'描述，如：充值100元', 'FormInputType' => 'editor', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '操作时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'操作时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tgeneral_file',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '通用文件表 1.0 2014-6-24 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'fileName', 'Type' => 'varchar(64)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '文件名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'文件名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'filePath', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '文件路径', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'文件路径', 'FormInputType' => 'file', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'fileSize', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '文件大小', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'文件大小', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'fileType', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '文件类型', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'文件类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'fileExt', 'Type' => 'varchar(8)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '文件扩展名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'文件扩展名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'parentID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '文件夹编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'文件夹编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dirName', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '所属文件夹名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'所属文件夹名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'exTags', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '扩展标签', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'扩展标签', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '状态(0=禁用,1=启用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=启用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '文件创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'文件创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tstat_extension_work',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '分坐席通话时长统计表 1.0 2014-7-12 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billdate', 'Type' => 'date', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '计费日期(月日)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'计费日期', 'FormInputType' => 'datepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'agentID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '坐席工号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'坐席工号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'agentName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '坐席姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'坐席姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'connCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '坐席呼通总量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'坐席呼通总量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sec10', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '0-10秒', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'0-10秒', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sec20', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '10-20秒', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'10-20秒', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sec30', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '20-30秒', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'20-30秒', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sec40', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '30-40秒', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'30-40秒', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sec50', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '40-50秒', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'40-50秒', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'sec60', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '50-60秒', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'50-60秒', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'min2', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '1-2分钟', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'1-2分钟', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'min3', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '2-3分钟', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'2-3分钟', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'min5', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '3-5分钟', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'3-5分钟', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'min8', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '5-8分钟', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'5-8分钟', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'min15', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '8-15分钟', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'8-15分钟', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'min30', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '15-30分钟', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'15-30分钟', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'min30mt', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '30分钟以上', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'30分钟以上', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tstat_seat_call',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '外呼转座席统计表 1.0 2014-7-12 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billdate', 'Type' => 'date', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '计费日期(月日)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'计费日期', 'FormInputType' => 'datepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'taskStrategyID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '外呼任务策略编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼任务策略编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼出总量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼出总量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'connCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '接通总量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'接通总量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'connDuration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '接通总时长(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'接通总时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'connRate', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '接通率(%)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'接通率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'answerCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '坐席接听总量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'坐席接听总量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'manualSignedCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '含签入手动', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'含签入手动', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'transferRate', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '到坐席率(%)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'到坐席率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'unTransCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '未到坐席量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'未到坐席量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'unSignedCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '含未迁入手动', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'含未迁入手动', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'unTransDuration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '未到坐席时长(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'未到坐席时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'averageDuration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '平均时长', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'平均时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tstat_seat_work',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '坐席工作统计表 1.0 2014-7-12 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billdate', 'Type' => 'date', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '计费日期(月日)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'计费日期', 'FormInputType' => 'datepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'agentID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '坐席工号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'坐席工号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'beginTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'endTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '结束时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'结束时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'leaveCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '离开次数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'离开次数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'leaveDuration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '离开总时长(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'离开总时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'leaveRate', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '离开比率(%)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'离开比率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'freeCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '空闲次数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'空闲次数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'freeDuration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '空闲总时长(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'空闲总时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'freeRate', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '空闲比率(%)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'空闲比率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'workCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '工作次数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'工作次数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'workDuration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '总工作时长(秒)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'总工作时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'workRate', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '工作比率', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'工作比率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tstat_system_call',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '系统话务统计表 1.0 2014-7-12 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billdate', 'Type' => 'date', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '计费日期(月日)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'计费日期', 'FormInputType' => 'datepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'beginTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'endTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '结束时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'结束时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'trunk', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'incomeCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '来话次数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来话次数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'incomeDuration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '来话时长', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来话时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '外呼次数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼次数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callDuration', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '外呼时长', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼时长', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'callFailCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '外呼失败次数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'外呼失败次数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tstat_system_call_loss',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '系统呼损统计表 1.0 2014-7-12 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billdate', 'Type' => 'date', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '计费日期(月日)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'计费日期', 'FormInputType' => 'datepicker', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'beginTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '开始时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'开始时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'endTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '结束时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'结束时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'incomeCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '来话总数', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来话总数', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'unReplyCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '来话未应答', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来话未应答', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'unArriveCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '来话未到达', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来话未到达', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'unAnswerCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '来话未接听', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'来话未接听', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extensionNotAnswerCount', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '到分机未接听', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'到分机未接听', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tuser_department',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '部门表 1.1 2014-6-16 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'name', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '部门编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'部门编号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'parentID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '上级部门编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'上级部门编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'permissionRule', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '权限规则', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'权限规则', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '部门状态(0=禁用,1=正常)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'部门状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=正常', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'code', 'Type' => 'varchar(8)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '部门代号,如营销部门=YXBM,营销小组=YXXZ', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'部门代号,如营销部门=YXBM,营销小组=YXXZ', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid),每个公司可以独立定义自己的部门', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tuser_member',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '用户表(分机,中继,管理员) 1.2 2014-6-16 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'userName', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '用户登录名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'用户登录名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'password', 'Type' => 'varchar(128)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '用户登录密码(带有*的是加密过的密码,否则是明文密码)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'用户登录密码', 'FormInputType' => 'password', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extensionNumber', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '电话分机号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'电话分机号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'extensionPassword', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '分机密码(注册在分机上面的密码,一般设置后不会再修改,默认123456)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'分机密码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'teamNumber', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '队列号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'队列号', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ctiTrunk', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继名称(CTIID)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ctiCallerNo', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '主叫号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主叫号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ctiRegMode', 'Type' => 'varchar(12)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '中继注册模式(register=注册模式,ip=IP模式)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'中继注册模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ctiModel', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '模式(Leader=班长模式,SEAT=普通员工)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'recState', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '录音标识(1=启用,0=禁用)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音标识', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '1=启用,0=禁用', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'canreinvite', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'canreinvite', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dtmfmode', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => 'DTMF模式(如:rfc2833)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'DTMF模式', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'maxTask', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '任务最大数量', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'任务最大数量', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'keepCallHistoryDays', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '通话清单最大保留时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'通话清单最大保留时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'keepRecordHistoryDays', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '录音最大保留时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'录音最大保留时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'outFeeRate', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼出使用费率', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼出使用费率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'inFeeRate', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼入使用费率', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼入使用费率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'smsFeeRate', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '短信使用费率', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'短信使用费率', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'allowOverdraftAmount', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '可透支金额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'可透支金额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'blance', 'Type' => 'decimal(12,4)', 'Null' => 'NO', 'Key' => '', 'Default' => '0.0000', 'Extra' => '', 'Comment' => '账户余额', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'账户余额', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'userType', 'Type' => 'varchar(16)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '用户类型(SEAT=座席,ADMIN=普通管理员,SUPERADMIN=超级管理员)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'用户类型', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'personalName', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '用户姓名', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'用户姓名', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'roleID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '角色编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'角色编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'departmentID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '部门编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'部门编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'permissionRule', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '权限规则', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'权限规则', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'activated', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '是否激活', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否激活', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'theme', 'Type' => 'varchar(32)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '网站外观主题', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'网站外观主题', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '用户状态(0=禁用,1=正常)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'用户状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=正常', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'loginIP', 'Type' => 'varchar(16)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '最后登录IP', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'最后登录IP', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'loginTime', 'Type' => 'datetime', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '最后登录时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'最后登录时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '公司编号,在此表功能相当于ParentID,超级管理员可以给每个公司分配一个顶级管理员(siteID=0),顶级管理员可以再给本公司分配多个普通管理员,siteID=该顶级管理员的uid', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号,在此表功能相当于ParentID,超级管理员可以给每个公司分配一个顶级管理员', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tuser_permission',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '权限表 1.1 2014-6-16 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'name', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '权限名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'权限名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'parentID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '上级权限编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'上级权限编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'ordinal', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '999', 'Extra' => '', 'Comment' => '排序号码', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'排序号码', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '权限状态(0=禁用,1=正常)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'权限状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=正常', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'linkUrl', 'Type' => 'varchar(255)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '菜单的URL', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'菜单的URL', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'isMenu', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '是否显示为菜单', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'是否显示为菜单', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'tuser_role',
		'ENGINE' => 'InnoDB',
		'TABLE_COLLATION' => 'utf8',
		'TABLE_COMMENT' => '角色表 1.1 2014-6-16 by sutroon',
		'TABLE_FIELDS' => array(
			array('Field' => 'id', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Comment' => '主键编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'主键编号', 'FormInputType' => 'hidden', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'name', 'Type' => 'varchar(32)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '角色名称', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'角色名称', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'parentID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '上级角色编号', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'上级角色编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'permissionRule', 'Type' => 'text', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '权限规则', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'权限规则', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'state', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '1', 'Extra' => '', 'Comment' => '角色状态(0=禁用,1=正常)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'角色状态', 'FormInputType' => 'radio', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '0=禁用,1=正常', 'ListValueFunction' => 'get_state_text=###', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'createdTime', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '创建时间', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'创建时间', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid),每个公司可以独立定义自己的角色', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
	array(
		'TABLE_NAME' => 'vcdr',
		'ENGINE' => '',
		'TABLE_COLLATION' => '',
		'TABLE_COMMENT' => 'VIEW',
		'TABLE_FIELDS' => array(
			array('Field' => 'siteID', 'Type' => 'int(11)', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '公司编号(公司管理员的uid)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'公司编号', 'FormInputType' => 'select', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '?s=M/A.html', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'src', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'src', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dst', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dst', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'dstchannel', 'Type' => 'varchar(80)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'dstchannel', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'direction', 'Type' => 'smallint(6)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '呼叫方向(1=呼入,2=呼出)', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'呼叫方向', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'end', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'end', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'billsec', 'Type' => 'int(11)', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'billsec', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'disposition', 'Type' => 'varchar(45)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'disposition', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'recordingfile', 'Type' => 'varchar(255)', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'recordingfile', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
			array('Field' => 'answer', 'Type' => 'datetime', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Comment' => '', 'AutoCoding' => array('Ordinal'=>999, 'Title'=>'answer', 'FormInputType' => 'text', 'FormRequire' => TRUE, 'FormValueVar' => '$data', 'FormJSONSource' => '', 'FormValueRange' => '', 'ListValueFunction' => '', 'ParamAddParam' => TRUE, 'ParamAddOptional' => FALSE, 'ParamAddData' => TRUE)),
		),
	),
);